package edu.zut.hb.ambition.doctor.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import edu.zut.hb.ambition.base.domain.BaseEntity;
@Table(name = "attendanceGroup")
@Entity
@NamedQueries({ @NamedQuery(name = "DoctorGroup.getRoot", query = "select g from DoctorGroup g where g.parent is null")})
public class DoctorGroup extends BaseEntity<DoctorGroup,Long> {
    private static final long serialVersionUID = -4376674977047164142L;

    @Column(name = "name")
    private String name;

    @Column(name = "address")
    private String address;

    @Column(name = "phone")
    private String phone;

//    @OneToMany(mappedBy = "attendanceGroup", cascade = CascadeType.REMOVE, fetch = FetchType.EAGER)
//    Set<Attendacne> attendances;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
